<form action="" id="form-horizontal" class="form-horizontal" role="form">
  <div class="form-group">
    <label class="col-sm-2 control-label">名称</label>
    <div class="col-sm-4">
      <input type="text" class="form-control" name="name" placeholder="" datatype="*" value="{$seckill.name}">
    </div>
  </div>
<div class="form-group">
    <label class="col-sm-2 control-label">活动时间</label>
    <div class="row">
      <div class="col-sm-4">
        <div class="input-group">
          <span class="input-group-addon">开始</span>
          <input type="text" class="form-control" id="begin-time" name="begin_time" placeholder="请选择活动开始时间" value="{$seckill.begin_time|date='Y-m-d H:i', ###}">
          <span class="input-group-addon">-</span>
          <input type="text" class="form-control" id="end-time" name="end_time" placeholder="请选择活动结束时间" value="{$seckill.end_time|date='Y-m-d H:i', ###}">
          <span class="input-group-addon">结束</span>
        </div>
      </div>
    </div>
  </div>
  <div class="form-group">
    <label class="col-sm-2 control-label">抢购时间</label>
    <div class="row">
      <div class="col-sm-4">
        <div class="input-group">
          <span class="input-group-addon">开始</span>
          <input type="text" class="form-control" id="start-time" name="start_time" placeholder="请选择活动开始时间" value="{$seckill.start_time}">
          <span class="input-group-addon">-</span>
          <input type="text" class="form-control" id="over-time" name="over_time" placeholder="请选择活动结束时间" value="{$seckill.over_time}">
          <span class="input-group-addon">结束</span>
        </div>
      </div>
    </div>
  </div>
<div class="form-group">
    <label class="col-sm-2 control-label">每日抢购数量</label>
    <div class="col-sm-4">
      <input type="number" class="form-control" name="daily_number" placeholder="" datatype="*" value="{$seckill.daily_number}">
    </div>
  </div>
  <div class="form-group">
    <label class="col-sm-2 control-label">状态</label>
    <div class="col-sm-5">{$seckill.statusRadio}</div>
  </div>
  
  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-8">
      <input type="hidden" name="id" value="{$seckill.id}">
      <button type="submit" class="btn btn-primary" data-loading-txt="提交中，请稍后……" data-ajax-url="__CONTROLLER__/save">保存更改</button>
    </div>
  </div>
</form>

<!-- datetimepicker -->
<link rel="stylesheet" href="__PUBLIC__/Style/Common/datetimepicker/jquery-ui-1.10.0.custom.min.css">
<script type="text/javascript" src="__PUBLIC__/Style/Common/datetimepicker/jquery-ui-1.10.0.custom.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/Style/Common/datetimepicker/jquery-ui-timepicker-addon.js"></script>
<script type="text/javascript" src="__PUBLIC__/Style/Common/datetimepicker/jquery-ui-timepicker-zh-CN.js"></script>
<script type="text/javascript">
  //时间
  $("#begin-time").datetimepicker( { "timeFormat": "HH:mm" } );
  $("#end-time").datetimepicker( { "timeFormat": "HH:mm" } );
  $('#start-time').timepicker();
  $("#over-time").timepicker();
</script>
